-
Notifications
You must be signed in to change notification settings - Fork 0
Development #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Development #1
Conversation
…ser retention along the session and exiting after logout in the auth folder
…ser retention along the session and exiting after logout in the auth folder(update-1)
…n of product page
…oduct in header total cart amount and update and ddeletion of products in cart
…s the submit page)
…n of order table which shows the orders)
…of cart items once the payment is successfull)
… once the payment is done and along with that changing the status to payment completed
…ed with designing and fetching of orders categories and products
…egories using admin panel
…dy to be used(update-1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format this file and all other files.
| @@ -0,0 +1,190 @@ | |||
| <?php | |||
| session_start(); | |||
| define("freshcery", "http://freshcery"); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use proper naming conventions. Constants must be uppercase.
https://www.php.net/manual/en/language.constants.php
admin-panel/admin.php
Outdated
| <div class="card-body"> | ||
| <h5 class="card-title">Products</h5> | ||
| <!-- <h6 class="card-subtitle mb-2 text-muted">Bootstrap 4.0.0 Snippet by pradeep330</h6> --> | ||
| <p class="card-text">number of products: <?php echo $_SESSION['product_count']?></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use short hand echo tags here. https://www.php.net/manual/en/language.basic-syntax.phptags.php#example-35
| $image = $_FILES['image']['name']; | ||
| $image_tmp = $_FILES['image']['tmp_name']; | ||
| $upload_dir = "../../assets/img/"; | ||
|
|
||
| if (!empty($image)) { | ||
| move_uploaded_file($image_tmp, $upload_dir . $image); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this may cause issue when 2 images with same name are uploaded.
| @@ -0,0 +1,61 @@ | |||
| <?php | |||
| include '../../configration/db.config.php'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be require. as without connection our project will have lots of errors.
admin-panel/orders.php
Outdated
|
|
||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
admin-panel/orders.php
Outdated
| <script type="text/javascript"> | ||
|
|
||
| </script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
admin-panel/products.php
Outdated
| </div> | ||
| <div class="modal-footer"> | ||
| <input type="submit" class="btn btn-success" name="add_student" value="ADD"> | ||
| <a href="<?php //echo freshcery; ?>/admin-panel/products.php" class="btn btn-danger" data-bs-dismiss="modal">Close</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is URL commented?
…ed new form of payment system
…s the admin panel added link beautification fixed bugs in admin panel resolved comments of extra code, and applied shorthand notation
…he payment and also sent more metadata to stripe also added email functionality
…using vendors stripe ,completed with mail-feature -> sending mail to the buyer along with details,made changes in the product details page
…using vendors stripe ,completed with mail-feature -> sending mail to the buyer along with details,made changes in the product details page
…using vendors stripe ,completed with mail-feature -> sending mail to the buyer along with details,made changes in the product details page
…using vendors stripe ,completed with mail-feature -> sending mail to the buyer along with details,made changes in the product details page
93acbc0 to
759359d
Compare
No description provided.